package school;

public class Test2 {

	public static void main(String[] args) {
		Object o = new JavaTeacher("小蔡", "合肥科海中心");

		// JavaTeacher j1 = (JavaTeacher) o;
		//
		// j1.selfIntro();
		// j1.giveLession();

		DocNetTeacher j2 = (DocNetTeacher) o;
		j2.selfIntro();
		j2.giveLession();
	}

}
